package com.guoning.office_system.mapper;

import com.guoning.office_system.model.MeetingRoom;
import com.guoning.office_system.model.MeetingRoomWithUser;
import com.guoning.office_system.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("MeetingRoomMapper")
public interface MeetingRoomMapper {
    List<MeetingRoomWithUser> selectByCondition(Criteria criteria);

    Long selectByConditionCount(Criteria criteria);

    int updateEnableStatus(List list);

    int updateForDelete(List list);

    int deleteByPrimaryKey(Long id);

    int insert(MeetingRoom record);

    int insertSelective(MeetingRoom record);

    MeetingRoom selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MeetingRoom record);

    int updateByPrimaryKey(MeetingRoom record);
}